import request from "/@/utils/request"

export function fetchList(query?: Object) {
    return request({
        url: '/eletile-digital/wmsAssetCard/page',
        method: 'get',
        params: query
    })
}

export function download(query?: Object) {
    return request({
        url: '/eletile-digital/wmsAssetCard/download',
        method: 'get',
        params: query
    })
}

export function printCard(obj?: Object) {
    return request({
        url: '/eletile-digital/wmsAssetCard/printCard',
        method: 'post',
        data: obj
    })
}

export function addObj(obj?: Object) {
    return request({
        url: '/eletile-digital/wmsAssetCard',
        method: 'post',
        data: obj
    })
}

export function getObj(id?: string) {
    return request({
        url: '/eletile-digital/wmsAssetCard/' + id,
        method: 'get'
    })
}

export function getDetailsPageSet(query?: Object) {
    return request({
        url: '/eletile-digital/wmsAssetCard/getDetailsPageSet',
        method: 'get',
        params: query
    })
}

export function delObjs(ids?: Object) {
    return request({
        url: '/eletile-digital/wmsAssetCard',
        method: 'delete',
        data: ids
    })
}

export function putObj(obj?: Object) {
    return request({
        url: '/eletile-digital/wmsAssetCard',
        method: 'put',
        data: obj
    })
}

/**
 * 保存资产卡片
 * @param data
 */
export function saveWmsAssetCard(data?: any) {
    return request({
        url: '/eletile-digital/wmsAssetCard/saveWmsAssetCard',
        method: 'post',
        data: data
    })
}

